package cn.baage.campus.mapper;

import cn.baage.campus.model.po.PostingImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 帖子图片Mapper
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
public interface PostingImgMapper extends BaseMapper<PostingImg> {

    /**
     * 批量新增
     *
     * @param postingImgList 帖子图片列表
     */
    void insertBatch(@Param("postingImgList") List<PostingImg> postingImgList);


    /**
     * 根据帖子ID获取图片
     *
     * @param postingId 帖子ID
     * @return 帖子图片
     */
    List<PostingImg> selectByPostingId(@Param("postingId") String postingId);

}
